package com.mecuros.user.config;

import com.mecuros.user.interceptor.MyLoadBalanced;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Classname RestConfig
 * @Description TODO
 * @Date 2022/1/24 11:25 下午
 * @Created by yujianbo
 */
@Configuration
public class RestConfig {

    @Bean
//    @LoadBalanced
    @MyLoadBalanced
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }
}
